#ifndef __NL_H
#define __NL_H

#ifdef USE_NETLINK

#include <sys/types.h>

typedef struct {
	int nl_sd;
	int nl_id;
} netlink_data_t;

void setup_netlink(netlink_data_t* netlink_data, int pid, int bi);
int get_task_stats_from_nl(netlink_data_t* netlink_data, pid_t pid, pid_t tid, 
						   double *utime, double *stime, double *rtime);

#endif

#endif
